.PHONY: boot clean test



boot:
	go build
	./demo

clean:
	- rm db.sqlite
	
test:
	go test -v ./...

build-linux:
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o label-sys-linux-amd64

build-docker-alpine:
	go mod vendor
	podman build -t label-sys:alpine-dev -f alpine.dockerfile .

run-docker-alpine:
	podman run --rm -v $(shell pwd)/docker-config:/workspace/config -p 8080:8080 label-sys:alpine-dev

build-use-podman:
	podman run --rm -v $(shell pwd):/workspace golang:1.21-bullseye bash -c 'cd /workspace && go build -o label-sys-linux-amd64'